Use the tree command with the /f flag to recursively list all files and folders in a directory structure on Windows.